/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.business.account.facade.order.create;

import info.peigen.hotpot.business.account.facade.order.base.AbstractAccountServiceOrder;
import info.peigen.hotpot.common.core.enums.Currency;
import jakarta.validation.constraints.NotEmpty;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import static info.peigen.hotpot.common.core.enums.Currency.CNY;

/**
 * <b>(CreateIntermediateAccountOrder)</b>
 * 创建中间账户
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/7/28
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class CreateIntermediateAccountOrder extends AbstractAccountServiceOrder {
    /** 合作伙伴Id */
    @NotEmpty
    String   partnerId;
    /** 账户别名 */
    @NotEmpty
    String   aliasName;
    /** 币种 */
    @Builder.Default
    Currency currency = CNY;
}
